/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* 侧边导航栏样式 */
.sidebar {
    width: 250px;
    background: linear-gradient(to bottom, #212057, #312d93);
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-list {
    padding: 20px 0;
}

.nav-item {
    position: relative;
    transition: all 0.3s;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s;
}

.nav-item i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.nav-item:hover, .nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item:hover a, .nav-item.active a {
    color: white;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: white;
}

/* 主内容区域样式 */
.content {
    flex: 1;
    padding: 20px;
    margin-left: 250px;
}

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    margin-left: auto; /* 确保右对齐 */
}

.user-name {
    margin-right: 10px;
    font-size: 0.9rem;
    color: #555;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 卡片样式 */
.dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-row {
    display: flex;
    gap: 20px;
}

.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    flex: 1;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fafafa;
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #444;
}

.card-body {
    padding: 20px;
}

/* 健康指标样式 */
.health-metric {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.health-metric:last-child {
    border-bottom: none;
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e6f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.metric-icon i {
    font-size: 1.2rem;
    color: #1890ff;
}

.metric-content {
    flex: 1;
}

.metric-title {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.metric-value small {
    font-size: 0.8rem;
    font-weight: normal;
    color: #999;
}

/* 预约项目样式 */
.appointment-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.appointment-item:last-of-type {
    border-bottom: none;
}

.appointment-date {
    width: 60px;
    height: 60px;
    background-color: #f6f9fe;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.appointment-date .date {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1890ff;
}

.appointment-date .month {
    font-size: 0.8rem;
    color: #666;
}

.appointment-details {
    flex: 1;
}

.appointment-details h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

.appointment-details p {
    font-size: 0.85rem;
    color: #666;
    margin: 2px 0;
}

/* 健康建议样式 */
.advice-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.advice-item:last-child {
    border-bottom: none;
}

.advice-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f6ffed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.advice-icon i {
    font-size: 1.2rem;
    color: #52c41a;
}

.advice-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

.advice-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* 健康资讯样式 */
.news-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-img {
    width: 80px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 15px;
}

.news-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

.news-content p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.4;
}

.news-date {
    font-size: 0.8rem;
    color: #999;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    margin-top: 15px;
}

.btn-primary {
    background-color: #1890ff;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #40a9ff;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .sidebar {
        width: 200px;
    }
    
    .content {
        margin-left: 200px;
    }
    
    .dashboard-row {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        overflow: hidden;
    }
    
    .sidebar-header h2, .nav-item a span {
        display: none;
    }
    
    .nav-item i {
        margin-right: 0;
        font-size: 1.3rem;
    }
    
    .nav-item a {
        justify-content: center;
        padding: 15px 0;
    }
    
    .content {
        margin-left: 60px;
    }
}

@media (max-width: 576px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-info {
        margin-top: 10px;
    }
    
    .content {
        padding: 10px;
    }
}

/* 健康管理模块样式 */
.profile-tabs {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow-x: auto;
}

.tab {
    padding: 15px 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    font-weight: 500;
}

.tab:hover {
    background-color: #f9f9f9;
}

.tab.active {
    border-bottom: 2px solid #1890ff;
    color: #1890ff;
}

.tab-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

/* 表单样式 */
.profile-form {
    max-width: 800px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

/* 操作栏 */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 记录容器 */
.records-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.record-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.record-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.record-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.record-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.record-date {
    color: #888;
    font-size: 14px;
}

.record-content {
    color: #555;
    line-height: 1.6;
}

/* 疫苗接种时间线 */
.vaccination-timeline {
    position: relative;
    padding-left: 30px;
}

.vaccination-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #1890ff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #1890ff;
}

.timeline-date {
    font-weight: 600;
    color: #1890ff;
    margin-bottom: 5px;
}

.timeline-content {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 12px 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 家族病史树 */
.family-tree-container {
    height: 400px;
    margin-bottom: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    background-color: #fafafa;
}

/* 健康监测样式 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon:hover {
    background-color: #e0e0e0;
}

.btn-icon i {
    font-size: 14px;
    color: #555;
}

.real-time-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.metric-large {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fafafa;
}

.metric-large .metric-icon {
    width: 50px;
    height: 50px;
}

.metric-large .metric-content {
    margin: 15px 0;
}

.metric-chart {
    height: 100px;
    margin-top: 10px;
}

.period-selector {
    display: flex;
    gap: 5px;
}

.period-btn {
    padding: 5px 12px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.period-btn.active {
    background-color: #1890ff;
    border-color: #1890ff;
    color: white;
}

.trend-chart-container {
    height: 300px;
    width: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        width: 100%;
    }
    
    .real-time-metrics {
        grid-template-columns: 1fr;
    }
    
    .profile-tabs {
        overflow-x: auto;
    }
    
    .tab {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* 通讯录模块样式 */
.contacts-container {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: calc(100vh - 140px);
}

.contacts-sidebar {
    width: 320px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    background-color: #fafafa;
}

.contacts-search {
    padding: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.contacts-search input {
    flex: 1;
    margin-right: 10px;
}

.contacts-filter {
    padding: 10px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #eee;
}

.filter-item {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: all 0.2s;
}

.filter-item:hover {
    background-color: #e0e0e0;
}

.filter-item.active {
    background-color: #1890ff;
    color: white;
}

.contacts-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-left: 3px solid transparent;
}

.contact-item:hover {
    background-color: #f0f0f0;
}

.contact-item.active {
    background-color: #e6f7ff;
    border-left-color: #1890ff;
}

.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
    border: 2px solid #fff;
}

.status-online {
    background-color: #52c41a;
}

.status-offline {
    background-color: #d9d9d9;
}

.status-busy {
    background-color: #ff4d4f;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.contact-status {
    font-size: 12px;
    color: #999;
}

.contact-details {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.contact-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-header .contact-avatar {
    width: 80px;
    height: 80px;
    margin-right: 20px;
}

.contact-header .contact-info {
    flex: 1;
}

.contact-header .contact-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background-color: #e6f7ff;
    color: #1890ff;
}

.action-btn i {
    font-size: 20px;
    margin-bottom: 5px;
}

.action-btn span {
    font-size: 12px;
}

.contact-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.info-item {
    display: flex;
    margin-bottom: 12px;
}

.info-label {
    width: 100px;
    color: #666;
}

.info-value {
    flex: 1;
    color: #333;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    background-color: #f0f0f0;
}

.tag-family {
    background-color: #e6f7ff;
    color: #1890ff;
}

.tag-friend {
    background-color: #f6ffed;
    color: #52c41a;
}

.tag-colleague {
    background-color: #fff7e6;
    color: #fa8c16;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #d9d9d9;
}

.contact-more-actions {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.more-actions-list {
    display: flex;
    flex-direction: column;
}

.more-action-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    color: #666;
}

.more-action-item:hover {
    color: #1890ff;
}

.more-action-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.more-action-item.danger {
    color: #ff4d4f;
}

.more-action-item.danger:hover {
    color: #ff7875;
}

@media (max-width: 768px) {
    .contacts-container {
        flex-direction: column;
        height: auto;
    }
    
    .contacts-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        max-height: 300px;
    }
    
    .contact-details {
        padding: 15px;
    }
    
    .contact-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-header .contact-avatar {
        margin-bottom: 15px;
    }
    
    .contact-actions {
        flex-wrap: wrap;
    }
}

/* 朋友圈模块样式 */
.social-feed-container {
    display: flex;
    height: calc(100vh - 140px);
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.social-feed-sidebar {
    width: 280px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    background-color: #fafafa;
}

.user-profile {
    position: relative;
    height: 220px;
    margin-bottom: 20px;
}

.cover-photo {
    height: 140px;
    overflow: hidden;
}

.cover-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 0 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.profile-name {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.sidebar-actions {
    padding: 0 20px 20px;
}

.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 15px;
}

.sidebar-action-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: none;
    background-color: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.sidebar-action-btn:hover {
    background-color: #e6f7ff;
    color: #1890ff;
}

.sidebar-action-btn i {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.social-feed-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.post-composer {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px;
    display: none;
}

.post-composer.active {
    display: block;
}

.composer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.composer-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.composer-content textarea {
    min-height: 100px;
    margin-bottom: 15px;
    resize: vertical;
}

.media-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.media-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.media-item img, .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-media {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.media-actions {
    display: flex;
    gap: 15px;
}

.media-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: #666;
}

.media-action-btn i {
    font-size: 18px;
    margin-bottom: 5px;
}

.media-action-btn span {
    font-size: 12px;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #666;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    display: inline-block;
    height: 18px;
    width: 18px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-right: 8px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #e0e0e0;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #5148E7FF;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.social-feed {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #999;
}

.loading-indicator i {
    font-size: 24px;
    margin-bottom: 10px;
}

.post {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.post-header {
    display: flex;
    align-items: center;
    padding: 15px;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.post-user-info {
    flex: 1;
}

.post-username {
    font-weight: 600;
    color: #333;
    margin: 0 0 5px;
}

.post-meta {
    display: flex;
    align-items: center;
    color: #999;
    font-size: 12px;
}

.post-time {
    margin-right: 10px;
}

.post-location {
    display: flex;
    align-items: center;
}

.post-location i {
    margin-right: 3px;
}

.post-actions-dropdown {
    position: relative;
}

.post-actions-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 18px;
    padding: 5px;
}

.post-actions-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    min-width: 120px;
    z-index: 10;
    display: none;
}

.post-actions-menu.active {
    display: block;
}

.post-action-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.post-action-item:hover {
    background-color: #f5f5f5;
}

.post-action-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.post-action-item.danger {
    color: #ff4d4f;
}

.post-content {
    padding: 0 15px 15px;
    white-space: pre-wrap;
    word-break: break-word;
}

.post-media {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 15px 15px;
}

.post-media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.post-media-item.single {
    max-width: 100%;
    max-height: 400px;
}

.post-media-item.multiple {
    width: calc(33.333% - 4px);
    height: 120px;
}

.post-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.post-stats {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-top: 1px solid #f0f0f0;
    color: #999;
    font-size: 14px;
}

.post-stat {
    display: flex;
    align-items: center;
    margin-right: 20px;
    cursor: pointer;
}

.post-stat i {
    margin-right: 5px;
}

.post-stat.active {
    color: #5148E7FF;
}

.post-stat.liked {
    color: #ff4d4f;
}

.post-comments {
    background-color: #f9f9f9;
    padding: 15px;
    border-top: 1px solid #f0f0f0;
}

.post-likes {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.post-likes-icon {
    color: #ff4d4f;
    margin-right: 8px;
}

.post-likes-list {
    flex: 1;
}

.post-likes-list span {
    margin-right: 5px;
    color: #5148E7FF;
    cursor: pointer;
}

.comment {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.comment-user {
    font-weight: 600;
    color: #1890ff;
    cursor: pointer;
}

.comment-time {
    font-size: 12px;
    color: #999;
}

.comment-content {
    color: #333;
    word-break: break-word;
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

.comment-action {
    font-size: 12px;
    color: #999;
    cursor: pointer;
    margin-left: 10px;
}

.comment-action:hover {
    color: #1890ff;
}

.comment-action.danger:hover {
    color: #ff4d4f;
}

.comment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}

.comment-modal.active {
    display: flex;
}

.comment-modal-content {
    width: 90%;
    max-width: 500px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.comment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-modal-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.comment-modal-body {
    padding: 20px;
}

.comment-modal-body textarea {
    min-height: 100px;
    resize: vertical;
}

.comment-modal-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #f0f0f0;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .social-feed-container {
        flex-direction: column;
        height: auto;
    }
    
    .social-feed-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .user-profile {
        height: auto;
    }
    
    .profile-info {
        position: relative;
        padding: 20px;
    }
    
    .profile-avatar {
        margin-top: -40px;
    }
    
    .sidebar-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .btn-block {
        width: 100%;
    }
    
    .sidebar-action-btn {
        width: calc(50% - 5px);
    }
}

@media (max-width: 768px) {
    .post-media-item.multiple {
        width: calc(50% - 3px);
        height: 150px;
    }
    
    .composer-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .media-actions {
        margin-bottom: 15px;
    }
    
    .post-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .sidebar-action-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .post-media-item.multiple {
        width: 100%;
        height: 200px;
        margin-bottom: 5px;
    }
}

/* Add styles for the empty page message */
.empty-page-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px;
    min-height: 300px;
}

.empty-page-message i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-page-message h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.empty-page-message p {
    color: #666;
}

.card-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 0;
}

.card-empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

.card-empty-state p {
    color: #888;
    font-size: 0.9rem;
} 